package com.example.netease.service.impl;

import com.example.netease.dao.CardDao;
import com.example.netease.entity.Card;
import com.example.netease.service.CardService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("CardService")
public class CardServiceImpl implements CardService {

    @Resource
    private CardDao cardDao;

    @Override
    public Card select() {
        return cardDao.select();
    }

    @Override
    public int update( String cardContent,String color,String cardName,String fontColor) {
        return cardDao.update(cardContent,color,cardName,fontColor);
    }
}
